﻿using System.Linq;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Views.Base;

namespace UI.Helper
{
    public class FormHelper
    {
        public static GridColumn GetColumn(ColumnView view, string fieldName)
        {
            var column = view
                .Columns
                .FirstOrDefault(t => t.FieldName == fieldName);

            return column;
        }
    }
}
